function showmyshade(idname,width,height){
var isIE = (document.all) ? true : false;
var isIE6 = isIE && ([/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6);
newbox=document.getElementById(idname);
newbox.style.width=width+'px';
newbox.style.height=height+'px';
newbox.style.zIndex="9999";
newbox.style.display="block";
newbox.style.padding="4px 10px 10px";
newbox.style.backgroundColor="#FFFFFF";
newbox.style.border='1px solid #05549d';
newbox.style.textAlign='left';
newbox.style.color="#333333";
newbox.style.WebkitBoxShadow='5px 2px 6px #000';
newbox.style.MozBoxShadow='3px 3px 6px #555';
newbox.style.lineHeight='24px';
newbox.style.position = !isIE6 ? "fixed" : "absolute";
newbox.style.top =newbox.style.left = "50%";
newbox.style.marginTop = - newbox.offsetHeight / 2 + "px";
newbox.style.marginLeft = - newbox.offsetWidth / 2 + "px";
layer=document.createElement("div");
layer.id="layer";
layer.style.width=layer.style.height="100%";
layer.style.position= !isIE6 ? "fixed" : "absolute";
layer.style.top=layer.style.left=0;
layer.style.backgroundColor="#000";
layer.style.zIndex="9998";
layer.style.opacity="0.6";
document.body.appendChild(layer);
sel=document.getElementsByTagName("select");
for(var i=0;i<sel.length;i++){
sel[i].style.visibility="hidden";
}
function layer_iestyle(){
layer.style.width=Math.max(document.documentElement.scrollWidth, document.documentElement.clientWidth)
+ "px";
layer.style.height= Math.max(document.documentElement.scrollHeight, document.documentElement.clientHeight) +
"px";
}
function newbox_iestyle(){
newbox.style.marginTop = document.documentElement.scrollTop - newbox.offsetHeight / 2 + "px";
newbox.style.marginLeft = document.documentElement.scrollLeft - newbox.offsetWidth / 2 + "px";
}
if(isIE){layer.style.filter ="alpha(opacity=60)";}
if(isIE6){
layer_iestyle()
newbox_iestyle();
window.attachEvent("onscroll",function(){
newbox_iestyle();
})
window.attachEvent("onresize",layer_iestyle)
}

}
function closemyshade(){
	newbox.style.display="none";
	layer.style.display="none";
	for(var i=0;i<sel.length;i++){
		sel[i].style.visibility="visible";
	}
}